Inside Macintosh: Sound
| Previous | Chapter contents | Chapter top | Section top | Next |
Every AIFF and AIFF-C file contains a Common Chunk that defines some fundamental characteristics of the sampled sound contained in the file. The format of the Common Chunk is different for AIFF and AIFF-C files. As a result, you need to determine the type of file format (by inspecting the formType field of the Form Chunk) before reading the Common Chunk.
For AIFF files, the CommonChunk data type defines a Common Chunk.
TYPE CommonChunk =
RECORD
ckID: ID; {'COMM'}
ckSize: LongInt; {size of chunk data}
numChannels: Integer; {number of channels}
numSampleFrames: LongInt; {number of sample frames}
sampleSize: Integer; {number of bits per sample}
sampleRate: Extended; {number of frames per second}
END;
| Previous | Chapter contents | Chapter top | Section top | Next |